package 第二章_JavaSE基础.三_Java中的多态;

public class cat extends Animal{
    @Override
    void eat() {
        System.out.println("吃鱼");
    }

    public void work(){
        System.out.println("抓老鼠");
    }
}
